import React, { memo, useEffect, useState } from "react";
import { GetGoodsList } from "@/utils/goods";
import { useHistory } from "react-router-dom";
import Goods from "../cpns/goods";
import { WaitingForCommentWrapper } from "./style";
export default memo(function WaitingForComment() {
  const [list, setlist] = useState([]);
  const history = useHistory();

  useEffect(() => {
    GetGoodsList(history, setlist, 3);
  }, []);
  return (
    <WaitingForCommentWrapper>
      <Goods goodsList={list}></Goods>
    </WaitingForCommentWrapper>
  );
});
